using System.ComponentModel.DataAnnotations;

namespace UpdaterManagement.Models
{
    public class DeployedApplication
    {
        public int Id { get; set; }
        
        [Required]
        public string ServiceName { get; set; } = "";
        
        [Required]
        public string ServiceVersion { get; set; } = "";
        
        [Required]
        public string ServerIp { get; set; } = "";
        
        public int EnterpriseId { get; set; }
        
        public Enterprise? Enterprise { get; set; }
        
        public int ProductId { get; set; }
        
        public Product? Product { get; set; }
        
        [Required]
        public string DeployPath { get; set; } = "";
        
        [Required]
        public string SystemType { get; set; } = "Windows";
        
        public string? Description { get; set; }
        
        public string Status { get; set; } = "Running";
        
        public DateTime LastUpdated { get; set; } = DateTime.Now;
        
        public DateTime CreatedTime { get; set; } = DateTime.Now;
        
        public bool IsActive { get; set; } = true;
    }
}